import { Http } from '@angular/http';
import { Injectable } from '@angular/core';
import 'rxjs/add/operator/toPromise';

@Injectable()
export class AlarmService {

  constructor(private http: Http) { }
  getAlarmList() {
    return this.http.get('assets/mock-data/alarm-list.json')
      .toPromise()
      .then(res =>  res.json().data)
      //.then(data => data);
  };
}
